Packetery\Module\Checkout D

Total Complexity 143
Dependencies 30
Dependents 2
Total lines 1,039
Lines of code 572
Logical lines of code 294
Comment lines 218
Methods 35
Properties 13

Methods 35

Method Rating Maintainability Complexity Lines of code
validateCheckoutData()
C
35 23 85
updateOrderMeta()
B
38 21 63
calculateFees()
A
44 11 46
getTaxClassWithMaxRate()
A
49 9 33
getShippingRates()
A
48 8 32
filterPaymentGateways()
S
54 7 22
isShippingRateRestrictedByProductsCategory()
S
55 6 20
getCODSurcharge()
S
60 6 13
createSettings()
S
46 2 39
register_hooks()
S
55 3 20
renderWidgetButtonAfterShippingRate()
S
57 3 18
isAgeVerification18PlusRequired()
S
63 4 10
getDisallowedShippingRateIds()
S
61 3 12
renderWidgetButtonTableRow()
S
59 2 15
isCodPaymentMethod()
S
74 3 4
getCarrierId()
S
65 3 10
isPickupPointCarrier()
S
66 3 9
calculateShipping()
S
67 2 8
getCarrierIdFromShippingMethod()
S
71 2 6
__construct()
S
59 1 15
getChosenMethod()
S
68 2 7
isPickupPointOrder()
S
72 2 5
getCartWeightKg()
S
67 2 8
getCustomerCountry()
S
69 2 7
updateShippingRates()
S
69 2 6
isHomeDeliveryOrder()
S
72 2 5
getPickupPointValidateRequest()
S
61 1 14
renderHiddenInputFields()
S
62 1 12
getRateCost()
S
78 1 3
isPacketeryShippingMethod()
S
75 1 4
removeShippingMethodPrefix()
S
78 1 3
createShippingRate()
S
66 1 9
getCartPrice()
S
80 1 3
getCartContentsTotalIncludingTax()
S
79 1 3
isFreeShippingCouponApplied()
S
80 1 3